How can I make a test a class that has in its __init__ the creation of a connection to a database